<%= form_for(@pais) do |f| %>
    <% if @pais.errors.any? %>
        <div id="error_explanation">
            <h2><%= pluralize(@pais.errors.count, "error") %> prohibited this pais from being saved:</h2>

            <ul>
                <% @pais.errors.full_messages.each do |msg| %>
                    <li><%= msg %></li>
                <% end %>
            </ul>
        </div>
    <% end %>

    <div class="formulario">
        <div class="form-titulo">
            <h2>Nuevo <strong>Pais</strong></h2>

            <div class="form-buttons">
                <a class="button-adicional" id="dropdownMenu2" data-toggle="dropdown" rel="tooltip" data-placement="top" data-original-title="Mas Acciones">
                    <i class="fa fa-cog"></i>
                </a>
                <a class="button-adicional" href="#" data-toggle="collapse" data-target="#form-data" rel="tooltip" data-placement="top" data-original-title="Colapsar">
                    <i class="fa fa-chevron-down"></i>
                </a>
                <a class="button-adicional" href="#" rel="tooltip" data-placement="top" data-original-title="Ayuda">
                    <i class="fa fa-question-circle"></i>
                </a>

                <%= link_to paises_path, class: "btn btn-primary btn-xs" do %>
                    <i class="fa fa-arrow-left"></i> Regresar
                <% end %>
            </div>
        </div>

        <div class="in form-body" id="form-data">
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group campo-data">
                        <label>Clave</label>
                        <%= f.text_field :Clave, :class => "form-control", :tabindex => "1" %>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="form-group campo-data">
                        <label>Abreviacion</label>
                        <%= f.text_field :Abreviacion, :class => "form-control", :tabindex => "2" %>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="form-group campo-data">
                        <label>Nombre</label>
                        <%= f.text_field :Nombre, :class => "form-control", :tabindex => "3" %>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="formulario-footer">
        <%= f.submit "Guardar", :class => "btn btn-primary", :tabindex => "4" %>
        <%= link_to "Cancelar", paises_path, :class => "btn btn-default", :tabindex => "5" %>
    </div>
<% end %>
